﻿using System;
using System.Windows.Forms;
using Jay.Sc2.Bof.Lib;
using Jay.Sc2.Bof.Lib.State;

namespace Jay.Sc2.Bof.Windows
{
	static class Program
	{

		public static IRace CurrentRace = TerranRace.Instance;

		public static IStateProxy GetProxy(IState state)
		{
			if (state.Race == TerranRace.Instance) return new TerranStateProxy(state as TerranState);
			if (state.Race == ProtossRace.Instance) return new ProtossStateProxy(state as ProtossState);
			if (state.Race == ZergRace.Instance) return new ZergStateProxy(state as ZergState);
			return null;
		}
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main()
		{
			Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault(false);
			Application.Run(new RaceSelectorForm());
		}
	}
}
